#include "scriptPrepare.h"

QString bashResult(QStringList cmd)
{
    QStringList msg;
    QProcess process;
    process.start("bash", cmd);
    process.waitForStarted();
    process.waitForFinished();
    QByteArray output = process.readAll();
    if (process.error() != QProcess::UnknownError) {
        qDebug() << "Error:" << process.errorString();
    }
    qDebug() << output;
    msg << output;
    QString res = msg.join("");
    return res;
}
